package com.tanjie.blackbean.system.admin.feign;

import com.tanjie.blackbean.pojo.auth.UserInfoWithRolesAndPerms;
import com.tanjie.blackbean.pojo.system.UserInfoQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: tanjie
 * @date: 2022-04-21
 **/
@FeignClient(name = "blackbean-system-admin-boot", contextId = "userClient", path = IUserClient.path)
public interface IUserClient {

    String path = "feign/user";

    @PostMapping("queryUser")
    UserInfoWithRolesAndPerms queryUser(@RequestBody UserInfoQuery query);

}
